package com.it.schoolhomeos.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Map;

/**
 * 考试成绩DTO
 * 
 * 用于返回考试的成绩信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExamGradeDTO {
    
    /**
     * 考试ID
     */
    private Long examId;
    
    /**
     * 考试名称
     */
    private String examName;
    
    /**
     * 考试日期
     */
    private LocalDate examDate;
    
    /**
     * 各科目成绩
     */
    private Map<String, Double> subjectScores;
    
    /**
     * 总分
     */
    private Double totalScore;
    
    /**
     * 排名
     */
    private Integer ranking;
} 